package com.zjq.authoritysystem.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author Kimiaaaaa
 * @className BcryptUtil
 * @Description
 * @date 2023-11-08 18:06
 */
public class BcryptUtil {

    public static String passwordEncryption(String password) {
        BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
        String hashedPassword = passwordEncoder.encode(password);
        return hashedPassword;
    }
}
